package entityclasses;

import java.io.*;
import java.util.*;

public class RelationshipStatus {

	private Person inRelationshipWith;
	private String relationshipType;

    RelationshipStatus(String relationshipType, Person person) {
        this.inRelationshipWith = person;
        this.relationshipType = relationshipType;
    }

    public RelationshipStatus() {
    }
    
    @Override
    public String toString()
    {
        if (inRelationshipWith == null)
            return "İlişkisi yok.";
        
        return inRelationshipWith.toString() + " ile " + relationshipType;
    }

    /**
     * @param inRelationshipWith the inRelationshipWith to set
     */
    public void setInRelationshipWith(Person inRelationshipWith) {
        this.inRelationshipWith = inRelationshipWith;
    }

    /**
     * @param relationshipType the relationshipType to set
     */
    public void setRelationshipType(String relationshipType) {
        this.relationshipType = relationshipType;
    }

}
